package com.bw.service;

import com.bw.bean.Middle;
import com.bw.bean.Singer;
import com.bw.bean.Song;
import com.bw.mapper.InMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class Servicelmpl implements InService{
    @Autowired
    private InMapper mapper;


    @Override
    public List<Song> list(Map map) {
        return mapper.list(map);
    }

    @Override
    public int addsong(Song song) {
        return mapper.addsong(song);
    }

    @Override
    public int addmiddle(Middle middle) {
        return mapper.addmiddle(middle);
    }

    @Override
    public List<Singer> sing() {
        return mapper.sing();
    }

    @Override
    public Song idlist(Integer sid) {
        return mapper.idlist(sid);
    }

    @Override
    public Song huixian() {
        return null;
    }

    @Override
    public int delsong(Integer[] sid) {
        return mapper.delsong(sid);
    }

    @Override
    public int delmiddle(Integer[] sid) {
        return mapper.delmiddle(sid);
    }

    @Override
    public List<Song> pf() {
        return mapper.pf();
    }
}
